/*
 * @Descripttion: 
 * @version: 
 * @Author: yuanliutech
 * @Date: 2022-12-13 14:39:24
 * @LastEditors: yuanliutech@lwj
 * @LastEditTime: 2022-12-13 14:55:12
 */
import {
    validSpaceSpecialCharEmoji,
    validMobile,
    validatename,
    validateUsername
} from "@utils/validate";
export default {
    data() {
        return {
            rules: {
                name: [{
                        required: true,
                        message: "请输入租户名称",
                        trigger: "blur"
                    },
                    {
                        validator: validSpaceSpecialCharEmoji
                    },
                ],
                mobile: [{
                        required: true,
                        message: "请输入手机号",
                        trigger: "blur",
                    },
                    {
                        validator: validMobile,
                    },
                ],
                username: [{
                        required: true,
                        message: "请输入用户名",
                        trigger: "blur",
                    },
                    {
                        validator: validateUsername,
                    },
                ],
                type: [{
                    required: true,
                    message: "请选择机构属性",
                    trigger: ["change"],
                }],
                timeData: [{
                    required: true,
                    message: "请选择有效期",
                    trigger: "change",
                }, ],
                email: [{
                    trigger: "blur",
                }, {
                    validator: validSpaceSpecialCharEmoji,
                }, ],
                address: [{
                    trigger: "blur",
                }, {
                    validator: validSpaceSpecialCharEmoji,
                }, ],
                remarks: [{
                    trigger: "blur",
                }, {
                    validator: validSpaceSpecialCharEmoji,
                }, ],
            },
        }
    }
}